import Layout from '@/layout'

const distributorDataDownloadRouter = {
  path: '/distributor/data-download',
  component: Layout,
  redirect: 'noRedirect',
  alwaysShow: true,
  name: 'DistributorDataDownload',
  meta: {
    title: '数据下载',
    roles: ['distributor', 'admin']
  },
  children: [
    {
      path: 'inventory',
      component: () => import('@/views/distributor/data-download/inventory'),
      name: 'DistributorDataDownloadInventory',
      meta: { title: '库存下载（分销）', noCache: false }
    },
    {
      path: 'recommendation',
      component: () => import('@/views/distributor/data-download/recommendation'),
      name: 'DistributorDataDownloadRecommendation',
      meta: { title: '新增款式推荐包(TBD)', noCache: false }
    },
    {
      path: 'data-package',
      component: () => import('@/views/distributor/data-download/data-package'),
      name: 'DistributorDataDownloadDataPackage',
      meta: { title: '数据包下载(TBD)', noCache: false }
    },
    {
      path: 'goods',
      component: () => import('@/views/distributor/data-download/goods'),
      name: 'DistributorDataDownloadGoods',
      meta: { title: '商品数据(TBD)', noCache: false }
    }
  ]
}

export default distributorDataDownloadRouter
